package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.vo.SkuAttrVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * sku信息
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-10-31 22:55:50
 */
@Mapper
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {


    List<SkuAttrVo> selectAttr(@Param("catalogId") Long catalogId, @Param("skuId") Long skuId);

    BigDecimal selectIdPrice(@Param("skuId") Long skuId);
}
